package main

import (
	"github.com/kataras/iris/v12"
	"github.com/kataras/iris/v12/mvc"
	"project/web/controllers"
)

func main() {
	app := iris.New()
	app.Logger().SetLevel("debug")
	////app.RegisterView(iris.HTML("./web/views", ".html").Reload(true))
	//app.RegisterView(iris.HTML("./web/views", ".html"))
	//注册控制器
	mvc.New(app.Party("/hello")).Handle(new(controllers.MovieController))

	err := app.Run(
		iris.Addr("localhost:8088"),
	)
	if err != nil {
		return
	}
}
